package com.leetcode.LeetCode精选TOP面试题;

import com.leetcode.common.model.ListNode;

/**
 * @author 覃国强
 * @date 2022-07-16 13:03
 */
public class 题库_0237_删除链表中的节点 {

  static
  class Solution {
    public void deleteNode(ListNode node) {
      ListNode next = node.next;
      node.val = next.val;
      node.next = next.next;
      next.next = null;
    }
  }

}
